import {
  GO_BACK,
  TO_TWEETS_LIST_VIEW,
  TO_LOGIN_SCREEN,
  TO_REGISTER_SCREEN,
  TO_NEW_TWEET_SCREEN
} from '../types';

export function goBack() {
  return {
    type: GO_BACK
  }
}

export function toTweetsListView() {
  return {
    type: TO_TWEETS_LIST_VIEW
  }
}

export function toLoginScreen() {
  return {
    type: TO_LOGIN_SCREEN
  }
}

export function toRegisterScreen() {
  return {
    type: TO_REGISTER_SCREEN
  }
}

export function toNewTweetSreen() {
  return {
    type: TO_NEW_TWEET_SCREEN
  }
}
